//
//  User.swift
//  PokeMaster
//
//  Created by 李腾芳 on 2022/1/11.
//  Copyright © 2022 OneV's Den. All rights reserved.
//

import Foundation

struct User: Codable {
  var email: String
  // 2
  var favoritePokemonIDs: Set<Int>
  // 3
  func isFavoritePokemon(id: Int) -> Bool {
    favoritePokemonIDs.contains(id)
  }
}
